!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!                                                                              !
! December 2010: M White, http://www.guddler.co.uk                             !
!                         http://www.nightweave.co.uk                          !
!                         martin@guddler.co.uk                                 !
!                                                                              !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!                                                                              !
!                  Transferring files to / from the 9100                       !
!                                                                              !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Introduction
------------

To transfer files to / from 9100 and a PC (or Mac) you will need a serial cable
made up in line with the specification in the service manual. I had what appears
to be a null modem cable lying about and it seems to work. Because other stuff
that I have needs a PC, sadly I'm stuck with PCs and can't use any of my spare
Macs.

My setup is a very tiny Acer Revo 3600 PC with 2GB ram and a Prolific based USB
to serial adapter connected to the Fluke on serial port 2 (as per the manual)
via the aforementioned serial cable and this setup seems to work flawlessly.

For this reason, we will focus on the PC solution but I have done manual file
transfers between a MacBook Pro (late 2007 Intel) and the same prolific USB
cable before so I know it's perfectly possible. This info should give you the
right idea.

Unfortunately, whichever scenario you have, the process is a bit repetitive and
painful if you have a bunch of files to transfer and work on!

The Solution
------------

Hyperterminal type software that can also send and receive files over serial link
seems to be sparse on the ground these days since the advent of USB but I managed
to find a piece of software called "Hercules":
http://www.hw-group.com/products/hercules/index_en.html

Hercules can also handle communication over the usual more modern protocols
(UDP / TCP) but we're interested in the 'Serial' tab.

Go ahead and open this tab and define the port as per the setup on your Fluke.
The following is my setup, but it also happens to be the setup as recommended in
the Fluke manual.

Define COM port in Hercules:
	Name:		COM3
	Baud:		9600
	Data:		8
	Parity:		None
	Handshake:	Xon/Xoff
	Mode:		Data

Once we have that set up we're ready to think about sending and receiving files.

Where appropriate I have noted differences between the proper 9100 programmers
keyboard and a PC keyboard if, like me you have not been able to source a 9100
keyboard and you are using one of my home built PC keyboard adapters:
http://www.guddler.co.uk/f9100/9100key.html

In step 1 of these instructions I tell you to proceed from the root of the HDR.
This is not strictly necessary. Certain locations such as the 'PROGLIB' library
do not give you the option of entering the terminal, but UUT's do. Use your
judgement for what you need to do.

If you want to transfer files from a UUT then you may enter that UUT before 
sending or recieveing a file. If you do this then you can enter just the file 
name when sending / reciveing. If you are in the root then you will be best 
served by entering the full path to the file.

Sending fom 9100 to PC (Sending)
--------------------------------

1. On the 9100
- From the root of HDR select F5 (TERM) (F6 PC Key)
- Select the correct port (for me /port2)

2. In Hercules
- Click 'Open' in the relevant COM port (for me COM3)
- Right click and select 'Log to file'
- Choose the location and name of the file
- Optionally (but likely) ensure 'Overwrite Log File' is selected
- When ready to transfer, right click and select 'Log Enable' (or <CTRL-L>)

3. Back on the 9100
- Press the 'Info' key to enter interactive mode (numeric '-' PC Key)
- Select F5 (SEND) (F6 PC Key)
- Enter the full path of the file (eg: /HDR/PROGLIB/CRCCALC)
- Choose the correct format - often 'Program'

If all is well, the file will transfer to the PC. When complete

- As instructed hit <ENTER>

4. In Hercules
- Hit <CTRL-L>

You now have your saved file, copy it and do as you will with it.

Sending from PC to 9100 (Recieving)
-----------------------------------

** This may need refinement **

1. On the 9100
- From the root of HDR select F5 (TERM) (F6 PC Key)
- Select the correct port (for me /port2)
- Press F4 (RECEIVE) (F5 PC Key)
- Enter the name of the file to save (eg CRCTEST)
- Choose the correct format - often 'Program'
- Press <ENTER>

2. In Hercules
- Right click and select 'Send File' (or 'Send Again')

The file will transfer

3. On the 9100
- When completed press the 'Info' key to return to interactive mode
- Press F2 (SAVE)

Your transfer is complete and can be compiled / edited on the 9100

When you have finished sending and receiving files you should exit the terminal
on the 9100 by hitting the "Exit" key on the 9100 keyboard (+ on the numeric
keypad if you are using my PC module) and clicking "Close" in Hercules - but 
then hopefully that should be pretty obvious!

Making life easier - File Listing
---------------------------------

Using this method of transferring files, the process is a bit long winded if you 
want to transfer a bunch of files. I find it makes life easier if you have a 
file on the PC that lists all the files on your 9100's hard drive.

** SEE the manual '9100A-016_DiskBackup_PN846295_1988.pdf' on Flippers **
** Page 20 ish **

Making life easier - PC Keyboard Users
--------------------------------------

Another hint if you're using a PC keyboard is, if possible, to pop the FN keys
out and move them about to match the ones on the 9100. In other words, move
F4-F7 to the right by 1 leaving a gap where F4 used to be. Then move F8-F10 up
by 1 leaving a gap where F9 used to be, then finally use some black marker - or
if you're lucky scrape the paint off of the keys and insert blank keys where the
gaps now are.

This will work fine as my PC keyboard module is already sending the correct codes
to the 9100 so doing this just saves you from having to remember that things
are not what they say they are. I don't know why I didn't do this years ago!

Obviously don't do it if you intend to swap the keyboard between 9100 and PC.